package com.zx.freeapi.service;

import com.zx.freeapi.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zx.freeapi.model.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author darling
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-03-15 21:34:12
*/
public interface UserService extends IService<User> {

    /**
     * 密码加密
     * @param userPassword
     * @return
     */
    String encryptPassword(String userPassword);

    /**
     * 用户注销
     * @param request
     * @return
     */
    boolean userLogout(HttpServletRequest request);

    /**
     * 获取当前登录用户
     * @param request
     * @return
     */
    User getLoginUser(HttpServletRequest request);

    UserVO getUserVO(User user);

    List<UserVO> getUserVOList(List<User> userList);
}
